<?php
class UserModel extends Model
{
    public $rules = array(
        'title' => array('required'),
        'text' => array('required'),
    );
    public $attributes = array();
    public $tableName = 'posts';

    public function findAll()
    {
        $result = $this->getAll();
        return $result;
    }
}